<template>
  <div class="box">
    <el-breadcrumb separator=">">
      <el-breadcrumb-item to="/login" replace>首页</el-breadcrumb-item>
      <el-breadcrumb-item to="/login/financial" replace>理财管理</el-breadcrumb-item>
      <el-breadcrumb-item>标的设置</el-breadcrumb-item>
    </el-breadcrumb>
    <div class="tableBox">
      <div class="tableTitle">标的设置</div>
      <div class="searchBox">
        <el-form size="mini" inline>
          <div class="block">
            <el-form-item>
              <el-button type="primary" @click="routerLink">添加</el-button>
            </el-form-item>
          </div>
        </el-form>
      </div>
      <el-table :data="tableData">
        <el-table-column type="index" label="序号" width="60" align="center"></el-table-column>
        <el-table-column prop="" label="标的编号" align="center"></el-table-column>
        <el-table-column prop="" label="理财标名（名称+期数）" align="center"></el-table-column>
        <el-table-column prop="" label="收益率" align="center"></el-table-column>
        <el-table-column prop="" label="计息天数" align="center"></el-table-column>
        <el-table-column prop="" label="起投金额" align="center"></el-table-column>
        <el-table-column prop="" label="理财发布时间" align="center"></el-table-column>
        <el-table-column prop="" label="理财发布人" align="center"></el-table-column>
        <el-table-column prop="" label="理财类型" align="center"></el-table-column>
        <el-table-column prop="" label="专享人id" align="center"></el-table-column>
        <el-table-column label="今日推荐" align="center">
          <template slot-scope="data">
            <span @click="closeIcon(data.row)">取消</span>/<span class="colors" @click="settingsIcon(data.row)">设置</span>
          </template>
        </el-table-column>
        <el-table-column prop="" label="状态（正常/已下架）" align="center"></el-table-column>
        <el-table-column label="操作" align="center">
          <template slot-scope="data">
            <span class="colors" @click="obtained(data.row)">下架</span>
          </template>
        </el-table-column>
      </el-table>
      <pagination :maxTotal="maxTotal" @handleSize="handleSizeChange" @handleCurrent="handleCurrentChange"></pagination>
    </div>
  </div>
</template>

<script type="text/ecmascript-6">
  import pagination from 'components/pagination'

  export default {
    data () {
      return {
        maxTotal: 10,
        tableData: []
      }
    },
    created () {
    },
    methods: {
      closeIcon (item) {
      },
      settingsIcon (item) {
      },
      obtained (item) {
      },
      handleSizeChange (val) {
      },
      handleCurrentChange (val) {
      },
      routerLink () {
        this.$router.replace('financial/financialAdd')
      }
    },
    components: {
      pagination
    }
  }
</script>

<style lang="less" ref="stylesheet/less" scoped>

</style>
